package com.ls.pojo;

import org.omg.CosNaming.NamingContextExtPackage.StringNameHelper;
import org.omg.PortableInterceptor.INACTIVE;

public class Device {
    private Integer id; //设备id
    private String deviceNo; //设备编号
    private String deviceName; //设备名称
    private Integer status; //状态 0 启动 1停用
    private String maintainDate; //设备维护日期

    @Override
    public String toString() {
        return "Device{" +
                "id=" + id +
                ", deviceNo='" + deviceNo + '\'' +
                ", deviceName='" + deviceName + '\'' +
                ", status=" + status +
                ", maintainDate='" + maintainDate + '\'' +
                '}';
    }


    public Device() {
    }

    //有参构造方法
    public Device(Integer id, String deviceNo, String deviceName, Integer status, String maintainDate) {
        this.id = id;
        this.deviceNo = deviceNo;
        this.deviceName = deviceName;
        this.status = status;
        this.maintainDate = maintainDate;
    }

    //封装属性
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDeviceNo() {
        return deviceNo;
    }

    public void setDeviceNo(String deviceNo) {
        this.deviceNo = deviceNo;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMaintainDate() {
        return maintainDate;
    }

    public void setMaintainDate(String maintainDate) {
        this.maintainDate = maintainDate;
    }
}
